package com.att.service.impl;

import com.att.bean.UserInfoBean;
import com.att.dao.UserInfoDaoMapper;
import com.att.service.UserInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("userInfoService")
public class UserInfoServiceImpl implements UserInfoService {

    @Resource
    private UserInfoDaoMapper userInfoDaoMapper;

    @Override
    public List<UserInfoBean> findByCondition(UserInfoBean bean) {
        return userInfoDaoMapper.findByCondition(bean);
    }

    @Override
    public long findByConditionCount(UserInfoBean bean) {
        return userInfoDaoMapper.findByConditionCount(bean);
    }

    @Override
    public List<UserInfoBean> findUserName(String depId) {
        return userInfoDaoMapper.findUserName(depId);
    }
}
